/**
 * author zzy
 */
var $ = require('jquery');
var loading = module.exports = function(toggle) {
    var $body = $('body');
    if(toggle){
        var $loadingGIF = $(document.createElement('div'))
            .addClass('loading')
            .appendTo($body);
        $body.addClass('modal-open');
    }else{
        $body.find('.loading').remove();
        $body.removeClass('modal-open');
        $body.css('padding-right','0');
    }
};
